package org.dromara.profiles.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.profiles.domain.BusDonor;
import org.dromara.profiles.domain.BusDonorMedical;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 捐赠者医疗信息 mapper
 *
 * @author congxing
 */
@Mapper
public interface BusDonorMedicalMapper extends BaseMapper<BusDonorMedical>  {

    // 自定义查询方法
    @Select("SELECT * FROM bus_donor_medical WHERE donor_id = #{donorId} AND del_flag = 0")
    List<BusDonor> selectByDonorId(@Param("donorId") String donorId);
}
